#include <iostream>
using namespace std;

void swap(int *p1,int *p2)
{
    int t;
    t=*p1;
    *p1=*p2;
    *p2=t;
}

int main( )
{
    int a,b;
    cout<<"enter the number"<<endl;
    cin>>a>>b;
    if(a>b) swap(&a,&b);

    cout<<"min="<<a<<"max="<<b<<endl;

    cin>>a;
    return 0;
}
